"""
参数化
读取json文件
"""
import pytest
from PyTest.common.read_data2 import build_data
from PyTest.common.tools import add
class TestAdd(object):
    @pytest.mark.parametrize('x,y,expect',build_data())
    def test_add(self,x,y,expect):
        result = add(x,y)
        assert result == expect
